<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="jca"
	uri="http://www.ptc.com/windchill/taglib/components"%>

<%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>

<jca:wizard title="启动成品发布流程" buttonList="DefaultWizardButtons-FinishGood">
	<jca:wizardStep action="selectPartClassify_step" type="partManager" />
	<jca:wizardStep action="setFinishedGoodAttrs_step" type="partManager" />
</jca:wizard>

<script type="text/javascript">    
  function reloadAttrsStepPanel(event){
	 var currentStep = getCurrentStep();
	   // 2、part.purchaseItemAttributesWizStep!~objectHandle~partHandle~!
	   // 3、part.txwzAttributesWizStep!~objectHandle~partHandle~!
	   // 4、setClassificationAttributesWizStep!~objectHandle~partHandle~!
	 var classNodeOid  = document.getElementById('part_classify_hidden').value;
	 var classNodeOidTemp  = document.getElementById('part_classify_hidden_temp').value;
	 if(currentStep.indexOf('partManager.setFinishedGoodAttrs_step')!= -1){
	    //如果隐藏文本值为空，存储，反之，判断这次选择的大类小类是否和上次相同，用于判断是否刷新统型物资属性wizard
	    if("" != classNodeOidTemp && classNodeOid != classNodeOidTemp){
	        reloadPane(steps[1], steps[1]);
	    }
	    document.getElementById('part_classify_hidden_temp').value = classNodeOid;
	  }
  }
</script> 

<%@ include file="/netmarkets/jsp/util/end.jspf"%>